import pageRouter from './pages'
import viewRouter from './view'

import {createRouter, createWebHashHistory} from 'vue-router'

const cRouter = () => {
    return createRouter({
        history: createWebHashHistory(),
        scrollBehavior: () => ({top: 0}),
        routes: [...pageRouter, ...viewRouter],
    })
}
const router = cRouter()

export default router